<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>学生选课</title>
</head>
<center><h1>个人选课</h1></center>
<form method="get" th:align="center" th:action="@{/classtoshow}">
  <!--遍历课程列表-->

       <div th:each="classtochoose:${list}">
           <input name="classtochooses" type="checkbox" th:value="${classtochoose.name}"/>
           <span th:text="${classtochoose.classId}"></span>
           <span th:text="${classtochoose.type}"></span>
           <span th:text="${classtochoose.name}"></span>
           <span th:text="${classtochoose.teacher}"></span>
           <span th:text="${classtochoose.time}"></span>
           <span th:text="${classtochoose.classroom}"></span>
           <span th:text="${classtochoose.studentNum}"></span>
           <br>
       </div>
 <center><button class="button1">提交已选课程</button></center>
</form>
</body>
</html>